package com.thread.stream;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Stream;

/**
 * @author xuejingjing
 * @className 流对象的获取1
 * @description TODO
 * @date 2022/11/12/012 19:26
 */
public class 流对象的获取1 {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("张1", "王1", "李1", "张2", "张3", "钱1", "赵1", "毛1");
        Set<String> set = new HashSet<>();
        // 调用stream，获取流对象
        Stream<String> stream = list.stream();

    }
}
